package com.shicijiaoliu.service;

import com.shicijiaoliu.pojo.User;

import java.util.List;

public interface Userservice {
    void update(User user);

    User findByName(String username);

    void register(String username, String password, String email, String phone, String nickname, String ruler);

    void updatepwd(String newpwd);

    List<User> finduserBypage(int pagecount, int pagenumber, String username, String nickname);

    int getcount(String username, String nickname);
    
    User findByid(long id);

    void deluser(long id);

    void updateimg(String src,long id);

    void findpwd(String newpwd, String email);
}
